package com.videri.match.client;

import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.HTML;

/**
 * This class will represent the home page
 * sink in a VideriMatching webpage.  It will
 * display all the options available to the user.
 * @author Michael Bauer
 * @author Justin Mullen
 */
public class VideriHome extends MatchSink{

	/**
	 * Initialize the sink and return the info associated with it
	 * @return the MatchSinkInfo associated with this sink
	 */
	public static MatchSinkInfo init() {
		return new MatchSinkInfo("Videri Home") {
			public MatchSink createInstance(){
				return new VideriHome();
			}
			
			public String getColor(){
				return "#418EBC";
			}
		};
	}
	
	private VerticalPanel myHomePanel;
	
	/**
	 * This will create a new VideriHome sink
	 */
	public VideriHome(){
		initialize();
		initWidget(myHomePanel);
	}
	
	private void initialize(){
		myHomePanel = new VerticalPanel();
		HTML homePage = new HTML();
		homePage.setHTML("<p> Welcome to the new Duke Videri 2.0.  We've recently renovated our site to include several awesome new features including "+
				"<ul><li>Custom User Names</li> <li>Head-to-Head Competitions</li> <li> Single Round Matches </li> </ul> Please take a look around"+
				" and check it all out!</p>");
		myHomePanel.add(homePage);
	}
}
